Remote location's status "Disconnected", how to keep it connected (OK)? [net-use-command]
Posted
by AZ
on Server Fault
See other posts from Server Fault
or by AZ
Published on 2009-11-02T16:47:07Z
Indexed on
2010/05/24
13:02 UTC
Read the original article
Hit count: 162
networking
|net-use
I have an script that keeps running, under some scenarios, it needs to contact a server (\\us-sign). From time to time, if this server remains uncontacted for a while, the next time my script needs it, it will ask for my credentials.
What I found is that, after such thing happening and using net use, such server will be displayed as disconnected. if I type "net use \\us-sign", it won't ask me neither user nor password, what makes me believe, my credentials for such server are still "valid", nonetheless, its status will remain "disconnected".
This script is supposed to help us automate some procedures, but the need to keep a watch on it shall it request for credentials, it kind of defeats the purpose.
How can I keep its status "OK" no matter how long it is not being contacted?
© Server Fault or respective owner